﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp10
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数字");
            double num1 = double.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数字");
            double num2 = double.Parse(Console.ReadLine());
            Console.WriteLine("请选择：1.加 2.减 3.乘 4.除");
            double choose = double.Parse(Console.ReadLine());
            Linq linq = new Linq(num1, num2);

            switch (choose)
            {
                case 1:
                    linq.Addition();
                    break;
                case 2:
                    linq.Subtraction();
                    break;
                case 3:
                    linq.Multiplication();
                    break;
                case 4:
                    linq.Division();
                    break;
                default:
                    Console.WriteLine("选择错误");
                    break;
            }
        }
    }
}
